package com.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.dao.UsrMapper;
import com.model.Usr;

@Service("usrService")
public class UsrServiceImpl implements UsrServiceI {

	private UsrMapper usrMapper;
	
	
	
	public UsrMapper getUsrMapper() {
		return usrMapper;
	}


	@Autowired
	public void setUsrMapper(UsrMapper usrMapper) {
		this.usrMapper = usrMapper;
	}



	@Override
	public Usr getUsrById(Integer id) {
		// TODO Auto-generated method stub
		return usrMapper.selectByPrimaryKey(id);
	}

}
